home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48_2 / card.dum < prev    next >
Text File  |  1991-04-12  |  2KB  |  56 lines

  1. Article 3310 of comp.sys.handhelds:
  2. Path: en.ecn.purdue.edu!noose.ecn.purdue.edu!samsung!zaphod.mps.ohio-state.edu!sdd.hp.com!ucsd!rutgers!rochester!kodak!uupsi!sunic!news.funet.fi!funic!santra!kampi.hut.fi!alo
  3. From: alo@kampi.hut.fi (Antti Louko)
  4. Newsgroups: comp.sys.handhelds
  5. Subject: RAM (or ROM) card contents (was: Hidden EQ Library features)
  6. Message-ID: <1991Jan9.092526.23383@santra.uucp>
  7. Date: 9 Jan 91 09:25:26 GMT
  8. References: <1991Jan8.131352@ee.ubc.ca>
  9. Sender: news@santra.uucp (Cnews - USENET news system)
  10. Reply-To: alo@kampi.hut.fi (Antti Louko)
  11. Organization: Helsinki University of Technology
  12. Lines: 40
  13.  
  14. In article <1991Jan8.131352@ee.ubc.ca> jmorriso@ee.ubc.ca writes:
  15. >Some new SYSEVALS:
  16. >These SYSEVALS are for the EQ Lib only, plugged into port 1. I take no
  17. >responsibility
  18. >for whatever bad things happen to you if you use these!
  19.  
  20. Actually, the addresses below are not correct if you have a RAM card
  21. in port 2 and it is MERGEd with the main memory. In such a case,
  22. HP48SX swaps the adresses of the cards so that port2 becomes
  23. 80000-BFFFF and port1 becomes C0000-FFFFF.
  24.  
  25. >Addres Name    Number    Size(bytes)
  26. >80000: FIN    (270)     3184.0
  27. >818E0: EQLIB    (273)     7168.0
  28. .
  29. .
  30. >Evaluating theses sysevals just leaves the library on the stack where
  31. >you can play with
  32. >it ( STO. ATTACH. it is an ordinary object).
  33. .
  34. .
  35. >Add 40000h to all these values if it is in port 2.
  36.  
  37. Anyway, here is an easier way to get all variables (or pointers to
  38. them) of a port to the stack:
  39.  
  40. %%HP: T(3)A(D)F(.);
  41. @ input is a port number (real)
  42. \<< # 18CEAh SYSEVAL @ convert real to short
  43.     # 21922h SYSEVAL @ get all variables in the port to the stack
  44.     # 18DBFh SYSEVAL @ convert the count to a real
  45.     DUP 2 + ROLL DROP @ remove the port number from the stack
  46. \>>
  47. @ output is port variables and the number of them (real)
  48.  
  49. As you have probably noticed, you can't get variables (libraries) in a
  50. ROM card or in write-protected RAM card by << :portno:libraryno RCL >>.
  51. This is probably meant as a primitive copy protection of ROM cards.
  52.  
  53.     Antti
  54.  
  55.  
  56.